<?php
#include("app/serveradm/xhprof.php");
function dump2file($content,$filename = 'debuglog') {
    define('DEBUG_PATH', realpath(__DIR__));
    $m_time = microtime();
    list($t1, $t2) = explode(' ', $m_time);
    $t1 = $t1*1000000;
    $t2 = date('Y-m-d H:i:s',$t2);
    $flag = $t2.':'.$t1;
    $filename = $filename?$filename:'debuglog';
    $import_data = print_r($content,1);
    $import_data = "================".$flag."================\r\n".$import_data."\r\n";
    file_put_contents(DEBUG_PATH.'/debuglog/'.$filename.'.txt', $import_data,FILE_APPEND);
}
define('ROOT_DIR',realpath(dirname(__FILE__)));
require(ROOT_DIR.'/app/base/kernel.php');
require(ROOT_DIR.'/tools/debugFunc.php');
kernel::boot();

if(defined("STRESS_TESTING")){
    b2c_forStressTest::logSqlAmount();
}
